package com.yz.springtest.bean;

import com.yz.springtest.reflect.Car;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by Temp on 2017/9/7.
 */
@Configuration
public class Beans {

    @Bean(name = "car")
    public Car buildCar () {
        Car car = new Car();
        car.setBrand("bbbb");
        return car;
    }
}
